import { Component, OnInit, Output, EventEmitter } from '@angular/core';

@Component({
  selector: 'app-header',
  templateUrl: './header.component.html',
  styleUrls: ['./header.component.scss']
})
export class HeaderComponent implements OnInit {

  // 输入出 菜单 点击事件
  @Output() Togger = new EventEmitter<void>();

  @Output() togegerTheme =new EventEmitter<boolean>();

  constructor() { }

  ngOnInit() {
  }

  openSidebar(){
    this.Togger.emit();
  }

  onChange(checked:boolean){
    this.togegerTheme.emit(checked)
  }
}
